package com.example.demo.annotation;

import java.lang.annotation.*;

/**
 * @Author: ak
 * @Date: 2020/4/5 20:13
 */
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisCache {
    //key
    String redisKey() default "";
    //过期时间
    long expired() default -1;
    //是否为查询操作
    boolean read() default true;
    //缓存类型
    String cacheType() default "string";
}
